package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;

/*
* 字典明细*/
@Setter
@Getter
@ToString
public class SystemDictionaryItem {
    private Long id;
    //所属目录Id
    private Long parentId;
    //标题
    private String title;
    //序号
    private Integer sequence;

    public String getJson(){
        HashMap map = new HashMap() ;
        map.put("parentId",parentId );
        map.put("title",title );
        map.put("sequence",sequence );
        return JSON.toJSONString(map);
    }

}